import 'package:json_annotation/json_annotation.dart';

part 'connect_wifi.g.dart';

@JsonSerializable()
class ConnectWifiInfo {
  ///phone
  final String account;
  ///wifi pass
  final String pwd;
  ///wifi name
  final String ssid;

  ConnectWifiInfo(this.account, this.pwd, this.ssid);

  factory ConnectWifiInfo.fromJson(Map<String, dynamic> json) =>
      _$ConnectWifiInfoFromJson(json);

  Map<String, dynamic> toJson() => _$ConnectWifiInfoToJson(this);
}
